<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="&amp;#x524D;&amp;#x63D0;&amp;#xFF1A;&amp;#x200B;       &amp;#x4E4B;&amp;#x524D;&amp;#x4E00;&amp;#x76F4;&amp;#x60F3;&amp;#x7528;ubuntu&amp;#xFF0C;&amp;#x4F46;&amp;#x662F;&amp;#x73B0;&amp;#x5728;&amp;#x5927;&amp;#x90E8;&amp;#x5206;&amp;#x7F16;&amp;#x7A0B;&amp;#x90FD;&amp;#x662F;&amp;#x5728;win">
<meta property="og:type" content="article">
<meta property="og:title" content="Ubuntu环境变量配置">
<meta property="og:url" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/index.html">
<meta property="og:site_name" content="Silence潇湘夜雨">
<meta property="og:description" content="&amp;#x524D;&amp;#x63D0;&amp;#xFF1A;&amp;#x200B;       &amp;#x4E4B;&amp;#x524D;&amp;#x4E00;&amp;#x76F4;&amp;#x60F3;&amp;#x7528;ubuntu&amp;#xFF0C;&amp;#x4F46;&amp;#x662F;&amp;#x73B0;&amp;#x5728;&amp;#x5927;&amp;#x90E8;&amp;#x5206;&amp;#x7F16;&amp;#x7A0B;&amp;#x90FD;&amp;#x662F;&amp;#x5728;win">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/1.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/2.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/3.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/4.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/5.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/6.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/7.png">
<meta property="og:updated_time" content="2019-08-21T08:22:11.503Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Ubuntu环境变量配置">
<meta name="twitter:description" content="&amp;#x524D;&amp;#x63D0;&amp;#xFF1A;&amp;#x200B;       &amp;#x4E4B;&amp;#x524D;&amp;#x4E00;&amp;#x76F4;&amp;#x60F3;&amp;#x7528;ubuntu&amp;#xFF0C;&amp;#x4F46;&amp;#x662F;&amp;#x73B0;&amp;#x5728;&amp;#x5927;&amp;#x90E8;&amp;#x5206;&amp;#x7F16;&amp;#x7A0B;&amp;#x90FD;&amp;#x662F;&amp;#x5728;win">
<meta name="twitter:image" content="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/1.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/">





  <title>Ubuntu环境变量配置 | Silence潇湘夜雨</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Silence潇湘夜雨</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">Android开发一枚</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home //首页"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user //关于"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags  //标签"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th //分类"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive //归档"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-schedule">
          <a href="/schedule/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-calendar //日程表"></i> <br>
            
            日程表
          </a>
        </li>
      
        
        <li class="menu-item menu-item-sitemap">
          <a href="/sitemap.xml" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-sitemap //站点地图"></i> <br>
            
            站点地图
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/21/Ubtuntu环境变量配置/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Silence潇湘夜雨">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Silence潇湘夜雨">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Ubuntu环境变量配置</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-21T16:14:37+08:00">
                2019-08-21
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Linux/" itemprop="url" rel="index">
                    <span itemprop="name">Linux</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1.1k
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  7
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="&#x524D;&#x63D0;&#xFF1A;"><a href="#&#x524D;&#x63D0;&#xFF1A;" class="headerlink" title="&#x524D;&#x63D0;&#xFF1A;"></a>&#x524D;&#x63D0;&#xFF1A;</h1><p>&#x200B;       &#x4E4B;&#x524D;&#x4E00;&#x76F4;&#x60F3;&#x7528;ubuntu&#xFF0C;&#x4F46;&#x662F;&#x73B0;&#x5728;&#x5927;&#x90E8;&#x5206;&#x7F16;&#x7A0B;&#x90FD;&#x662F;&#x5728;windows&#x4E0A;&#xFF0C;&#x6240;&#x4EE5;&#x5F88;&#x5C11;&#x7528;&#x3002;&#x4F46;&#x662F;&#x73B0;&#x5728;&#x9700;&#x8981;&#x7F16;&#x8BD1;ffmpeg&#xFF0C;<br>&#x200B;    &#x5948;&#x4F55;windows&#x4E0A;&#x9047;&#x5230;&#x4E86;&#x5404;&#x79CD;bug&#xFF0C;&#x4E0D;&#x597D;&#x5904;&#x7406;&#xFF0C;&#x7D22;&#x6027;&#x76F4;&#x63A5;&#x7ED9;&#x81EA;&#x5DF1;&#x7684;&#x8001;&#x4EBA;&#x673A;&#x4E0A;&#x5B89;&#x88C5;&#x4E86;ubuntu&#x7CFB;&#x7EDF;&#x3002;&#x4ECA;&#x5929;&#x4E3B;&#x8981;&#x662F;&#x9488;&#x5BF9;<br>&#x200B;    &#x5C0F;&#x767D;&#x6765;&#x8BB2;&#x89E3;&#x4E00;&#x4E0B;ubuntu&#x914D;&#x7F6E;jdk&#x548C;ndk&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x7684;&#xFF0C;&#x8FD8;&#x8BF7;&#x7ED9;&#x4E3A;&#x5927;&#x4F6C;&#x7ED5;&#x9053;&#x8F7B;&#x70B9;&#x6253;&#x8138;&#x3002;</p>
<h3 id="&#x9996;&#x5148;"><a href="#&#x9996;&#x5148;" class="headerlink" title="&#x9996;&#x5148;"></a>&#x9996;&#x5148;</h3><p><strong>&#x672C;&#x7BC7;ubuntu&#x7248;&#x672C;&#x662F;16.04&#xFF0C;JDK&#x7248;&#x672C;&#x662F;1.8&#x548C;NDK&#x7248;&#x672C;&#x662F;android-ndk-r12b&#xFF0C;&#x4E0B;&#x9762;&#x7684;&#x662F;&#x94FE;&#x63A5;&#x5730;&#x5740;</strong></p>
<ul>
<li><p>&#x4E0B;&#x8F7D;<a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html?utm_source=androiddevtools&amp;utm_medium=website" target="_blank" rel="noopener">Linux&#x7248;&#x672C;&#x7684;JDK</a></p>
</li>
<li><p>&#x4E0B;&#x8F7D; <a href="https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip?utm_source=androiddevtools&amp;utm_medium=website" target="_blank" rel="noopener">Linux&#x7248;&#x672C;&#x7684;NDK</a></p>
</li>
<li><p>&#x4E0B;&#x8F7D; <a href="https://dl.google.com/dl/android/studio/ide-zips/3.0.1.0/android-studio-ide-171.4443003-linux.zip?utm_source=androiddevtools&amp;utm_medium=website" target="_blank" rel="noopener">Linux&#x7248;&#x672C;&#x7684;Android Studio</a></p>
<h3 id="&#x5176;&#x6B21;"><a href="#&#x5176;&#x6B21;" class="headerlink" title="&#x5176;&#x6B21;"></a>&#x5176;&#x6B21;</h3><ul>
<li><p>&#x4F7F;&#x7528;crtl+alt+t&#x5207;&#x6362;&#x5230;&#x7EC8;&#x7AEF;&#xFF0C;&#x7136;&#x540E;&#x5207;&#x6362;&#x5230;&#x4F60;&#x7684;jdk&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#xFF0C;&#x6211;&#x7684;&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#x5728;&#x201C;/home/silence/&#x4E0B;&#x8F7D;&#x201D; &#x8DEF;&#x5F84;&#x4E0B;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x5F53;&#x7136;&#x6211;&#x8FD9;&#x4E2A;&#x662F;&#x5DF2;&#x7ECF;&#x5B89;&#x88C5;&#x8FC7;&#x7684;&#x4E86;&#x76EE;&#x524D;&#x6CA1;&#x6709;JDK&#x548C;NDK&#x5B89;&#x88C5;&#x5305;</p>
<h5 id="1&#x3001;JDK&#x5B89;&#x88C5;"><a href="#1&#x3001;JDK&#x5B89;&#x88C5;" class="headerlink" title="1&#x3001;JDK&#x5B89;&#x88C5;"></a>1&#x3001;JDK&#x5B89;&#x88C5;</h5><p><img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/1.png" alt="ubuntuJDK&#x4E0B;&#x8F7D;&#x8DEF;&#x5F84;"></p>
</li>
</ul>
</li>
<li><p>&#x9009;&#x62E9;&#x7D22;&#x8981;&#x4E0B;&#x8F7D;&#x7684;Linux&#x5B89;&#x88C5;&#x5305;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x4F7F;&#x7528;&#x7684;&#x662F;jdk-8u161-linux-x64.tar.gz<br><img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/2.png" alt="JDK&#x7248;&#x672C;"></p>
</li>
<li><p>&#x5728;usr/lib&#x4E0B;&#x65B0;&#x5EFA;jdk&#x5305;&#xFF0C;&#x5E76;&#x4E14;&#x79FB;&#x52A8;jdk-8u161-linux-x64.tar.gz&#x5E76;&#x4E14;&#x89E3;&#x538B;</p>
<pre><code>1&#x3001;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;sudo mkdir /usr/lib/jdk&#x65B0;&#x5EFA;jdk&#x5305;
2&#x3001;&#x79FB;&#x52A8;jdk-8u161-linux-x64.tar.gz&#x5230;jdk&#x5305;&#x4E0B;&#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;
   sudo mv jdk-8u161-linux-x64.tar.gz /usr/lib/jdk
3&#x3001;&#x89E3;&#x538B;jdk-8u161-linux-x64.tar.gz&#x5305; &#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;
   sudo tar zxvf jdk-8u161-linux-x64.tar.gz &#x89E3;&#x538B;&#x4E4B;&#x540E;&#x5F97;&#x5230; 
   jdk1.8.0_161 &#x5305;</code></pre></li>
<li><p>&#x914D;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;</p>
<pre><code>1&#x3001;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;sudo gedit ~/.bashrc &#x6253;&#x5F00;~/.bashrc&#x6587;&#x4EF6;&#x5176;&#x4E2D;
  &#x3010;~/&#x3011;&#x8868;&#x793A;/home/&#x7528;&#x6237;&#x540D;,&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x5176;&#x4E2D;sudo&#x662F;&#x8D85;&#x7EA7;&#x7528;&#x6237;&#x9700;&#x8981;&#x8F93;&#x5165;&#x5BC6;&#x7801;</code></pre><p>   <img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/3.png" alt="&#x7EC8;&#x7AEF;&#x6253;&#x5F00;bashrc"></p>
</li>
</ul>
<pre><code>2&#x3001;&#x5728;~/.bashrc&#x7684;&#x6700;&#x4E0B;&#x9762;&#x8F93;&#x5165;&#xFF08;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#xFF09;
   export JAVA_HOME=/usr/lib/jdk/jdk1.8.0_161  
   export JRE_HOME=${JAVA_HOME}/jre  
   export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
   export PATH=${JAVA_HOME}/bin:$PATH</code></pre><p><img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/4.png" alt="bashrc&#x8F93;&#x5165;&#x73AF;&#x5883;&#x53D8;&#x91CF;"></p>
<pre><code>3&#x3001;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;source ~/.bashrc&#x662F;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x751F;&#x6548;&#xFF08;&#x5982;&#x4E0B;&#x56FE;&#xFF09;</code></pre><p><img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/5.png" alt="&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x751F;&#x6548;"><br><strong>&#x5F53;&#x7136;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x5DF2;&#x7ECF;&#x628A;JDK&#x73AF;&#x5883;&#x548C;NDK&#x7684;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x90FD;&#x5DF2;&#x7ECF;&#x914D;&#x7F6E;&#x4E86;</strong></p>
<ul>
<li><p>&#x5176;&#x4E2D;/usr/lib/jdk&#x8868;&#x793A;&#x7684;&#x5C31;&#x662F;&#x521A;&#x624D;&#x65B0;&#x5EFA;&#x7684;&#x90A3;&#x4E2A;&#x6587;&#x4EF6;&#x5939;</p>
</li>
<li><p>&#x540E;&#x9762;&#x7684;JRE_HOME&#x3001;CLASSPATH&#x3001;PATH&#x4F9D;&#x6B21;&#x5199;&#x5165;&#x5373;&#x53EF;&#x3002;</p>
</li>
<li><p>&#x7136;&#x540E;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;java -version&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#x5373;&#x8868;&#x793A;&#x6210;&#x529F;&#xFF08;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#xFF09;&#x3002;</p>
<p><img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/6.png" alt="JDK&#x6210;&#x529F;&#x56FE;"></p>
<h5 id="2&#x3001;NDK&#x5B89;&#x88C5;"><a href="#2&#x3001;NDK&#x5B89;&#x88C5;" class="headerlink" title="2&#x3001;NDK&#x5B89;&#x88C5;"></a>2&#x3001;NDK&#x5B89;&#x88C5;</h5><ul>
<li>&#x9996;&#x5148;&#x4E0B;&#x8F7D;NDK&#x5305;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x4F7F;&#x7528;&#x7684;&#x662F;<a href="https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip?utm_source=androiddevtools&amp;utm_medium=website" target="_blank" rel="noopener">android-ndk-r12b-linux-x86_64.zip</a>&#x4E0B;&#x8F7D;&#x4E4B;&#x540E;<br>&#x5207;&#x6362;&#x5230;&#x4E0B;&#x8F7D;&#x8DEF;&#x5F84;&#x4E0B;&#x5373;&#x2014;&#x2013; /home/silence/&#x4E0B;&#x8F7D;</li>
</ul>
</li>
<li><p>&#x65B0;&#x5EFA;NDK&#x5B89;&#x88C5;&#x8DEF;&#x5F84;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x662F;&#x5148;&#x5B89;&#x88C5;&#x4E86; <a href="https://dl.google.com/dl/android/studio/ide-zips/3.0.1.0/android-studio-ide-171.4443003-linux.zip?utm_source=androiddevtools&amp;utm_medium=website" target="_blank" rel="noopener">android-studio-ide-171.4443003-linux.zip</a></p>
<pre><code>1&#x3001;&#x4F1A;&#x5728;/home/silence/Android&#x4E0B;&#x751F;&#x6210;&#x4E00;&#x4E2A;Sdk&#x5305;&#xFF0C;&#x628A;NDK&#x5305;&#x79FB;&#x52A8;&#x5230;/home/silence/Android&#x8DEF;&#x5F84;&#x4E0B;&#xFF0C;
2&#x3001;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165; sudo mv android-studio-ide-171.4443003-linux.zip&#x5373;&#x53EF;&#xFF0C;
&#x7136;&#x540E;&#x7EC8;&#x7AEF;&#x5207;&#x6362;&#x5230;Android&#x8DEF;&#x5F84;&#x4E0B;&#xFF0C;&#x5373;cd /home/silence/Android 
3&#x3001;&#x8F93;&#x5165; ls -all &#x5373;&#x53EF;&#x770B;&#x5230;/home/silence/Android&#x8DEF;&#x5F84;&#x4E0B;&#x6240;&#x6709;&#x7684;&#x6587;&#x4EF6;&#xFF0C;
4&#x3001;&#x518D;&#x5BF9;android-studio-ide-171.4443003-linux.zip&#x8FDB;&#x884C;&#x89E3;&#x538B;&#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165; 
sudo unzip android-studio-ide-171.4443003-linux.zip&#x5373;&#x53EF;&#x5F97;&#x5230;&#x4E00;&#x4E2A;
Android-studio &#x5305; 
5&#x3001;&#x5207;&#x6362;&#x5230;android-studio/bin&#x76EE;&#x5F55;&#x4E0B;&#x6253;&#x5F00;.studio.sh&#x5373;&#x53EF;&#x6253;&#x5F00;android-studio
 &#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165; cd android-studio/bin,&#x7136;&#x540E;&#x518D;&#x8F93;&#x5165; sudo ./studio.sh&#x5373;&#x53EF;&#xFF0C;&#x8FD9;&#x6837;    
 &#x5C31;&#x53EF;&#x4EE5;&#x6253;&#x5F00;android studio
6&#x3001;&#x89E3;&#x538B;NDK&#x5305;&#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165; sudo unzip android-ndk-r12b-linux-
   x86_64.zip&#x5373;&#x53EF;&#x5F97;&#x5230;&#x4E00;&#x4E2A; &#x5305;&#x540D;&#x4E3A;android-ndk-r12b&#x7684;&#x5305;&#x3002;
7&#x3001;&#x914D;&#x7F6E;NDK&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165; sudo ~/.bashrc&#x6253;&#x5F00;~/.bashrc&#x6587;&#x4EF6;&#xFF0C;
   &#x5728;&#x6700;&#x540E;&#x8F93;&#x5165;&#x591A;&#x9700;&#x8981;&#x7684;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x8DEF;&#x5F84;&#xFF0C;&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x5173;&#x95ED;&#x3002;
8&#x3001;&#x4F7F;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x751F;&#x6548;&#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;source ~/.bashrc&#x5373;&#x53EF;&#x3002;
9&#x3001;&#x9A8C;&#x8BC1;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x6210;&#x529F;&#x4E0E;&#x5426;&#xFF0C;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165; ndk-build -v,&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#x5219;&#x914D;&#x7F6E;&#x6210;&#x529F;&#x3002;</code></pre><p> <img src="/2019/08/21/Ubtuntu&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x914D;&#x7F6E;/7.png" alt="NDK&#x6210;&#x529F;&#x56FE;"></p>
</li>
</ul>
<h3 id="&#x81F4;&#x8C22;"><a href="#&#x81F4;&#x8C22;" class="headerlink" title="&#x81F4;&#x8C22;"></a>&#x81F4;&#x8C22;</h3><p>  <a href="https://www.jianshu.com/p/9d8322e5de7f" target="_blank" rel="noopener">Android NDK&#x5F00;&#x53D1;&#xFF08;&#x4E09;&#xFF09; &#x5728;Linux&#x73AF;&#x5883;&#x4E0B;&#x7F16;&#x8BD1;FFmpeg</a><br><a href="http://www.androiddevtools.cn/index.html" target="_blank" rel="noopener">AndroidDevTools</a></p>
<h3 id="&#x603B;&#x7ED3;"><a href="#&#x603B;&#x7ED3;" class="headerlink" title="&#x603B;&#x7ED3;"></a>&#x603B;&#x7ED3;</h3><pre><code>   &#x914D;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x603B;&#x4F53;&#x6765;&#x8BF4;&#x8FD8;&#x662F;&#x6BD4;&#x8F83;&#x987A;&#x5229;&#x7684;&#xFF0C;&#x4F46;&#x662F;&#x5F53;&#x521A;&#x63A5;&#x89E6;&#x5230;&#x65B0;&#x4E1C;&#x897F;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x6709;&#x6240;&#x80C6;&#x602F;&#xFF0C;&#x4F46;&#x662F;&#x5F53;&#x6211;&#x4EEC;&#x771F;&#x6B63;&#x6218;&#x80DC;
&#x81EA;&#x5DF1;&#x7684;&#x80C6;&#x602F;&#x800C;&#x5B8C;&#x6210;&#x7684;&#x65F6;&#x5019;&#x5374;&#x53C8;&#x662F;&#x53E6;&#x4E00;&#x756A;&#x666F;&#x8C61;&#xFF0C;&#x6240;&#x4EE5;&#x9047;&#x5230;&#x95EE;&#x9898;&#x8FD8;&#x662F;&#x8FCE;&#x96BE;&#x800C;&#x4E0A;&#x5427;&#x3002;&#x63A8;&#x8350;&#x4E00;&#x4E2A;Android&#x4EA4;&#x6D41;&#x7FA4;&#xFF0C;&#x7FA4;&#x53F7;
493180098&#x3002;&#x8FD8;&#x6709;&#x4E00;&#x53E5;&#xFF0C;&#x8BF7;&#x5C0A;&#x91CD;&#x4F5C;&#x8005;&#x7684;&#x8F9B;&#x82E6;&#x52B3;&#x52A8;&#xFF0C;&#x8F6C;&#x8F7D;&#x8BF7;&#x6807;&#x660E;&#x51FA;&#x5904;&#xFF0C;&#x8C22;&#x8C22;&#x3002;</code></pre><p> <a href="https://www.jianshu.com/u/1e2eec6f972c" target="_blank" rel="noopener">&#x6211;&#x7684;&#x7B80;&#x4E66;</a><br><a href="https://juejin.im/user/58df0abf61ff4b006b115e43" target="_blank" rel="noopener">&#x6211;&#x7684;&#x6398;&#x91D1;</a><br><a href="https://github.com/muyishuangfeng" target="_blank" rel="noopener">&#x6211;&#x7684;github</a><br><a href="https://muyishuangfeng.github.io/" target="_blank" rel="noopener">&#x6211;&#x7684;&#x4E2A;&#x4EBA;&#x535A;&#x5BA2;</a><br><strong>&#x5C0F;&#x5F1F;&#x5C31;&#x539A;&#x7740;&#x8138;&#x76AE;&#x8BF4;&#x6B22;&#x8FCE;&#x5173;&#x6CE8;&#x54C8;</strong></p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/08/21/windows-下基于nginx和ffmpeg的rtmp流媒体服务器搭建-1/" rel="next" title="windows 下基于nginx和ffmpeg的rtmp流媒体服务器搭建">
                <i class="fa fa-chevron-left"></i> windows 下基于nginx和ffmpeg的rtmp流媒体服务器搭建
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/08/21/Android-获取验证码自动填充/" rel="prev" title="Android 获取验证码自动填充">
                Android 获取验证码自动填充 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Silence潇湘夜雨</p>
              <p class="site-description motion-element" itemprop="description">Android开发一枚</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">55</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">16</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/muyishuangfeng" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/1e2eec6f972c" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-heartbeat"></i>简书</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://juejin.im/user/58df0abf61ff4b006b115e43" target="_blank" title="掘金">
                      
                        <i class="fa fa-fw fa-star"></i>掘金</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://twitter.com/yangke20792452" target="_blank" title="Twitter">
                      
                        <i class="fa fa-fw fa-twitter"></i>Twitter</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#前提："><span class="nav-number">1.</span> <span class="nav-text">前提：</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#首先"><span class="nav-number">1.0.1.</span> <span class="nav-text">首先</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#其次"><span class="nav-number">1.0.2.</span> <span class="nav-text">其次</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#1、JDK安装"><span class="nav-number">1.0.2.0.1.</span> <span class="nav-text">1、JDK安装</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#2、NDK安装"><span class="nav-number">1.0.2.0.2.</span> <span class="nav-text">2、NDK安装</span></a></li></ol></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#致谢"><span class="nav-number">1.0.3.</span> <span class="nav-text">致谢</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#总结"><span class="nav-number">1.0.4.</span> <span class="nav-text">总结</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Silence潇湘夜雨</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">114.8k</span>
  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

  <!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/love.js"></script>
<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618},"display":{"superSample":2,"width":150,"height":300,"position":"right","hOffset":0,"vOffset":-20},"mobile":{"show":false},"react":{"opacityDefault":0.5,"opacityOnHover":0.5},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
